// import com.alibaba.druid.sql.ast.SQLStatement;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "DrdsChangeDDLJob.h"
#include "../../visitor/MySqlASTVisitor.h"

DrdsChangeDDLJob::DrdsChangeDDLJob()
{
  groupAndTableNameList = std::make_shared<std::list<string_ptr>>();
}
void DrdsChangeDDLJob::accept0(MySqlASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(DrdsChangeDDLJob));
  visitor->endVisit(SharedObject(DrdsChangeDDLJob));
}

long DrdsChangeDDLJob::getJobId()
{
  return jobId;
}

void DrdsChangeDDLJob::setJobId(long jobId)
{
  this->jobId = jobId;
}

BOOL_ptr DrdsChangeDDLJob::isSkip()
{
  return skip;
}

void DrdsChangeDDLJob::setSkip(BOOL_ptr skip)
{
  this->skip = skip;
}

BOOL_ptr DrdsChangeDDLJob::isAdd()
{
  return add;
}

void DrdsChangeDDLJob::setAdd(BOOL_ptr add)
{
  this->add = add;
}

string_list_ptr DrdsChangeDDLJob::getGroupAndTableNameList()
{
  return groupAndTableNameList;
}

void DrdsChangeDDLJob::addGroupAndTableNameList(string_ptr groupAndTableName)
{
  this->groupAndTableNameList->push_back(groupAndTableName);
}
